
<%@ page import="fleet_management.VehicleDatabase" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'vehicleDescription.label', default: 'VehicleDescription')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-vehicleDescription" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="Vehicle Database List" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="New Vehicle Database" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-vehicleDescription" class="content scaffold-show" role="main">
			<h1 style="margin-left: 210px; width: 850px;">Vehicle Database</h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list vehicleDescription">
			
			
			<g:if test="${vehicleDescriptionInstance?.vehicleNumber}">
				<li class="fieldcontain">
					<span id="vehicleNumber-label" class="property-label"><g:message code="vehicleDescription.vehicleNumber.label" default="Vehicle Number" /></span>
					
						<span class="property-value" aria-labelledby="vehicleNumber-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="vehicleNumber"/></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${vehicleDescriptionInstance?.vehicleType}">
				<li class="fieldcontain">
					<span id="vehicleType-label" class="property-label"><g:message code="vehicleDescription.vehicleType.label" default="Vehicle Type" /></span>
					
						<span class="property-value" aria-labelledby="vehicleType-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="vehicleType"/></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${vehicleDescriptionInstance?.brandName}">
				<li class="fieldcontain">
					<span id="brandName-label" class="property-label"><g:message code="vehicleDescription.brandName.label" default="Brand Name" /></span>
					
						<span class="property-value" aria-labelledby="brandName-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="brandName"/></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${vehicleDescriptionInstance?.model}">
				<li class="fieldcontain">
					<span id="model-label" class="property-label"><g:message code="vehicleDescription.model.label" default="Model" /></span>
					
						<span class="property-value" aria-labelledby="model-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="model"/></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${vehicleDescriptionInstance?.yearMade}">
				<li class="fieldcontain">
					<span id="yearMade-label" class="property-label"><g:message code="vehicleDescription.yearMade.label" default="Year Made" /></span>
					
						<span class="property-value" aria-labelledby="yearMade-label"><g:formatDate format="yyyy" date="${vehicleDescriptionInstance?.yearMade}" /></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${vehicleDescriptionInstance?.totalSeats}">
				<li class="fieldcontain">
					<span id="totalSeats-label" class="property-label"><g:message code="vehicleDescription.totalSeats.label" default="Total Seats" /></span>
					
						<span class="property-value" aria-labelledby="totalSeats-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="totalSeats"/></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${vehicleDescriptionInstance?.engineNumber}">
				<li class="fieldcontain">
					<span id="engineNumber-label" class="property-label"><g:message code="vehicleDescription.engineNumber.label" default="Engine Number" /></span>
					
						<span class="property-value" aria-labelledby="engineNumber-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="engineNumber"/></span>
					
				</li>
				</g:if>
				
			
				<g:if test="${vehicleDescriptionInstance?.chassisNumber}">
				<li class="fieldcontain">
					<span id="chassisNumber-label" class="property-label"><g:message code="vehicleDescription.chassisNumber.label" default="Chassis Number" /></span>
					
						<span class="property-value" aria-labelledby="chassisNumber-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="chassisNumber"/></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${vehicleDescriptionInstance?.blueBookValidity}">
				<li class="fieldcontain">
					<span id="blueBookValidity-label" class="property-label"><g:message code="vehicleDescription.blueBookValidity.label" default="BlueBook Validity" /></span>
					
						<span class="property-value" aria-labelledby="blueBookValidity-label"><g:formatDate format="MMMM dd, yyyy" date="${vehicleDescriptionInstance?.blueBookValidity}" /></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${vehicleDescriptionInstance?.pollutionCheck}">
				<li class="fieldcontain">
					<span id="pollutionCheck-label" class="property-label"><g:message code="vehicleDescription.pollutionCheck.label" default="Pollution Check" /></span>
					
						<span class="property-value" aria-labelledby="pollutionCheck-label"><g:formatDate format="MMMM dd, yyyy" date="${vehicleDescriptionInstance?.pollutionCheck}" /></span>
					
				</li>
				</g:if>
				
			
				<g:if test="${vehicleDescriptionInstance?.acquisitionDate}">
				<li class="fieldcontain">
					<span id="acquisitionDate-label" class="property-label"><g:message code="vehicleDescription.acquisitionDate.label" default="Acquisition Date" /></span>
					
						<span class="property-value" aria-labelledby="acquisitionDate-label"><g:formatDate format="MMMM dd, yyyy" date="${vehicleDescriptionInstance?.acquisitionDate}" /></span>
					
				</li>
				</g:if>
				
							
				<g:if test="${vehicleDescriptionInstance?.sourceOfFund}">
				<li class="fieldcontain">
					<span id="sourceOfFund-label" class="property-label"><g:message code="vehicleDescription.sourceOfFund.label" default="Source Of Fund" /></span>
					
						<span class="property-value" aria-labelledby="sourceOfFund-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="sourceOfFund"/></span>
					
				</li>
				</g:if>
				
			
				<g:if test="${vehicleDescriptionInstance?.duty}">
				<li class="fieldcontain">
					<span id="duty-label" class="property-label"><g:message code="vehicleDescription.duty.label" default="Duty" /></span>
					
						<span class="property-value" aria-labelledby="duty-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="duty"/></span>
					
				</li>
				</g:if>
				
			
				<g:if test="${vehicleDescriptionInstance?.hand}">
				<li class="fieldcontain">
					<span id="hand-label" class="property-label"><g:message code="vehicleDescription.hand.label" default="Hand" /></span>
					
						<span class="property-value" aria-labelledby="hand-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="hand"/></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${vehicleDescriptionInstance?.fuelType}">
				<li class="fieldcontain">
					<span id="fuelType-label" class="property-label"><g:message code="vehicleDescription.fuelType.label" default="Fuel Type" /></span>
					
						<span class="property-value" aria-labelledby="fuelType-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="fuelType"/></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${vehicleDescriptionInstance?.totalCost}">
				<li class="fieldcontain">
					<span id="totalCost-label" class="property-label"><g:message code="vehicleDescription.totalCost.label" default="Total Cost" /></span>
					
						<span class="property-value" aria-labelledby="totalCost-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="totalCost"/></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${vehicleDescriptionInstance?.insuranceValidity}">
				<li class="fieldcontain">
					<span id="insuranceValidity-label" class="property-label"><g:message code="vehicleDescription.insuranceValidity.label" default="Insurance Validity" /></span>
					
						<span class="property-value" aria-labelledby="insuranceValidity-label"><g:formatDate format="MMMM dd, yyyy" date="${vehicleDescriptionInstance?.insuranceValidity}" /></span>
					
				</li>
				</g:if>
				
			
				<g:if test="${vehicleDescriptionInstance?.insuredAmount}">
				<li class="fieldcontain">
					<span id="insuredAmount-label" class="property-label"><g:message code="vehicleDescription.insuredAmount.label" default="Insured Amount" /></span>
					
						<span class="property-value" aria-labelledby="insuredAmount-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="insuredAmount"/></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${vehicleDescriptionInstance?.premium}">
				<li class="fieldcontain">
					<span id="premium-label" class="property-label"><g:message code="vehicleDescription.premium.label" default="Premium" /></span>
					
						<span class="property-value" aria-labelledby="premium-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="premium"/></span>
					
				</li>
				</g:if>
				
			
				<g:if test="${vehicleDescriptionInstance?.adminRole}">
				<li class="fieldcontain">
					<span id="adminRole-label" class="property-label"><g:message code="vehicleDescription.adminRole.label" default="Region Admin" /></span>
					
						<span class="property-value" aria-labelledby="adminRole-label"><g:fieldValue bean="${vehicleDescriptionInstance}" field="adminRole"/></span>
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${vehicleDescriptionInstance?.id}" />
					<g:link class="edit" action="edit" id="${vehicleDescriptionInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
